/*interface InterFaceA {
    //void func();
}
class TestA implements InterFaceA{
   // @Override
    public void func() {
        System.out.println("我是重写的funcA方法！");
    }
}*/
public class Test {

    public void test() {

        class InnerClass {
            public int data1 = 1;

            public void test() {
                System.out.println("Inner::test()");
            }
        }
        //实例化的时候 只能在方法内部 进行实例化
        InnerClass innerClass = new InnerClass();
        innerClass.test();
    }

    public static void main(String[] args) {
        Test test = new Test();
        test.test();
    }
}
